<template>
  <van-skeleton title :row="3" v-if="images.value == 0" />
  <div class="box" v-else>
    <van-nav-bar title="标题" left-arrow :fixed="true" />
    <search></search>
    <swiper :images="images"></swiper>
  </div>
</template>

<script setup>
import { ref } from "vue";
import { swiperdataApi } from "@/api/api";
import search from "@/components/search.vue";
import swiper from "@/components/swiper.vue";
const images = ref([]);

const swiperFun = () => {
  swiperdataApi().then((res) => {
    images.value = res.data.message;
  });
};
swiperFun();
</script>

<style lang="scss" scoped></style>
